/*
 *  txdnet.cn tonydon
 * 
 */
package cn.txdnet.txcms.mapper;

import cn.txdnet.txcms.domain.Events;
import cn.txdnet.txcms.query.EventsQuery;
import cn.txdnet.txcms.query.ViewEventsQuery;
import java.util.List;
import java.util.Map;

/**
 *
 * @author txdnet
 */
public interface EventsMapper {

    int insertEvents(Events events);

    int updateEvents(Events events);

    int deleteEvents(int[] ida);

    int updatePubstate(Map m);

    int updatePubTime(Map m);

    int updateEndTime(Map m);

    int updateChannelAndCatalog(Map m);

    int countByFactor(EventsQuery query);

    List<Map> listByFactor(EventsQuery query);
    
    Events queryEventsForEdit(int id);
    
    Events queryEventsForView(ViewEventsQuery query);
    
    int increaseHitNum(int id);
}
